<? include("protect2.php"); ?>

<STYLE type=text/css>.blank {
	FONT-SIZE: 0px; WIDTH: 0px; HEIGHT: 0px
}
TD {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
INPUT {
	FONT-SIZE: 12px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
.present {
	FONT-WEIGHT: bold; BACKGROUND-COLOR: #dee5ec
}
.h1 {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: #ffffff
}
.d1 {
	COLOR: #c0c0c0
}
.link {
	FONT-WEIGHT: bold; FONT-SIZE: 12px; CURSOR: hand; COLOR: #ffffff; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.footer {
	FONT-WEIGHT: normal; FONT-SIZE: 10px; COLOR: #000000; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif; TEXT-DECORATION: none
}
.footer1 {
	FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE: url(chat/images/menu_b.gif); CURSOR: default; COLOR: #000000; BORDER-BOTTOM: 0px
}
.header {
	FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE: url(chat/images/menu_h.gif); CURSOR: default; COLOR: #000000; BORDER-BOTTOM: 0px
}
.textcol {
	FONT-SIZE: 12px; COLOR: #2378d5; FONT-FAMILY: Verdana, Arial, Helvetica, sans-serif
}
</STYLE>

<?php
	include("header_admin.html");
	include("connect.php");
	$pilih=mysql_select_db("uwika_krs",$conn);
	echo "<br><BR>";
	echo "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; BYPASS PRASYARAT MATA KULIAH :";
		
	echo "<br><Br>";

	echo "<table width=\"100%\" border=0>";
	
	$pilih=mysql_select_db("uwika",$conn);
	echo "<form name=\"frmtambah\" method=\"get\" action=\"tolmk2.php\">";
	echo "<tr>";
	echo "<td width=7%></td>";
	echo "<td>Semester</td>";
	echo "<td>:</td>";
	echo "<td><select name=\"sel_sesi\">";
	echo "<option>GASAL</option><option selected>GENAP</option>";
    echo "</select></tr>";
	echo "<tr><td width=7%></td><td>Periode</td>";
	echo "<td>:</td>";
	echo "<td><select name=\"sel_periode\">";
	$sqlstr="SELECT distinct periode FROM penawaran";
	$hasil=mysql_query($sqlstr);
	$row = mysql_fetch_row($hasil);
    do {
		list($periode) = $row;
		echo "<option>";
		echo $periode;
		echo "</option>";
	} while ($row=mysql_fetch_row($hasil));
    echo "</select></td></tr>";
	echo "<tr><td width=7%></td><td width=20%>N R P";
	echo "<td>:</td>";
	echo "<td><input name=\"tolnrp\" type=\"text\" size=\"9\"></td></tr>";
	echo "<tr><td width=7%></td><td>Kode Mata Kuliah</td>";
	echo "<td>:</td>";
	echo "<td><select name=\"tolkodemk\">";
	$sqlstr="SELECT kodemk FROM mk111 order by kodemk";
	$hasil=mysql_query($sqlstr);
	$row = mysql_fetch_row($hasil);
    do {
		list($kodemkall) = $row;
		echo "<option>";
		echo $kodemkall;
		echo "</option>";
	} while ($row=mysql_fetch_row($hasil));
 	echo "</td><td><input name=\"Submit\" type=\"submit\" value=\"Simpan\"></td>";
	echo "<td width=45%></td></tr></form>";
	echo "<form name=\"frmhapus\" method=\"get\" action=\"tolmk2.php\">";
	echo "<tr>";
	echo "<td></td>";
	echo "</table>";
	echo "<br>";

	echo "<table width=\"100%\" border=\"0\">";
	echo "<tr><td width=\"7%\"></td>";
	
	echo "</form></td>";
	echo "<td><form name=\"frmbatal\" method=\"post\" action=\"adminpage.php\">";
	echo "<input type=\"button\" value=\"Selesai\" onClick=\"javascript: history.go(-1)\">" . "</td></tr>";
	echo "</form>";
	echo "</table>";
	echo "<br><br>";

	include("footer.php");
?>